Skip to content

Conversation

@swissspidy
Copy link
Member

@swissspidy swissspidy commented Oct 6, 2025

Inspired by some changes in some of my own project, this PR modernizes the install-wp-tests.sh script with several improvements including migration from SVN to GitHub for downloading WordPress core and test files, addition of colored output, automatic update checking, and MariaDB support.

Changes:

  • Migrated from SVN to GitHub tar.gz archives for downloading WordPress and test suite files
  • Added colored terminal output for better user experience and error visibility
  • Implemented automatic script update checking functionality
  • Added MariaDB client support alongside MySQL

Related:

if [[ $1 =~ ^(y|yes)$ ]]
then
mysqladmin drop $DB_NAME -f --user="$DB_USER" --password="$DB_PASS"$EXTRA
if [ `which mariadb-admin` ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just because MariaDB might exist locally, is that sufficient to know that the developer wants to use it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could allow overriding with a flag perhaps if needed.

@davidperezgar
Copy link

Nice update! Moving to GIT that is better supported.

@codecov

This comment was marked as resolved.

This comment was marked as resolved.

This comment was marked as resolved.

This comment was marked as resolved.

Copilot AI and others added 6 commits January 20, 2026 11:19
- Modified download() to return error codes from curl/wget
- Updated check_for_updates() to check download() return value
- Added validation for empty downloaded files using -s flag
- Improved error messaging to distinguish between network failures and empty files

Co-authored-by: swissspidy <[email protected]>

This comment was marked as resolved.

@swissspidy swissspidy linked an issue Jan 22, 2026 that may be closed by this pull request
1 task

This comment was marked as resolved.

@swissspidy
Copy link
Member Author

/gemini review

gemini-code-assist[bot]

This comment was marked as resolved.

swissspidy and others added 3 commits January 25, 2026 09:54
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@swissspidy swissspidy marked this pull request as ready for review February 4, 2026 03:13
@swissspidy swissspidy requested a review from a team as a code owner February 4, 2026 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refresh install-wp-tests.sh script

4 participants